package cm.tl.pms.enums.base;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 接入区目录链平台
 * 不予共享
 */
@Getter
@AllArgsConstructor(access= AccessLevel.PRIVATE)
public enum DataShareTypeEnum implements IEnum {
    CATALOG_CHAIN("接入区目录链平台", 1),
    NO_SHARE("不予共享", 2);
    private final String name;
    private final Integer value;

    public static DataShareTypeEnum nameOf(Integer value) {
        for (DataShareTypeEnum e : DataShareTypeEnum.values()) {
            if (e.value.equals(value)) {
                return e;
            }
        }
        return null;
    }
}
